# -*-coding:utf-8 -*-
# File  : deviceModeUpdate_api.py
# Time  ：2021/12/7 15:32
# Author：author name

from api.manage.manage_base import ManageBase


class DeviceModelUpdateApi(ManageBase):
    def __init__(self):
        """设备机型修改接口"""
        super().__init__()
        self.url = self.host + "cloudlottery-manage/devicemode/update"
        self.json = {"deviceModeName": "彩票机器人11", "motornum": 1, "remark": "", "payresultmsg": 1, "modeType": 0,
                     "description": "4v4v",
                     "picture": "https://enlive.oss-cn-shenzhen.aliyuncs.com/Uploads/lottery/20211124/tJR2PZ_1637755183286_src%3Dhttp---img.51miz.com-Element-00-24-68-45-0dfe541e_E246845_8ae3a766.png!-quality-90-unsharp-true-compress-true-format-png%26refer%3Dhttp---img.51miz.jpg",
                     "negativePicture": "https://enlive.oss-cn-shenzhen.aliyuncs.com/Uploads/lottery/20211124/t6FENQ_1637755179210_src%3Dhttp---img.51miz.com-Element-00-24-68-45-0dfe541e_E246845_8ae3a766.png!-quality-90-unsharp-true-compress-true-format-png%26refer%3Dhttp---img.51miz.jpg",
                     "id": "9fee91ce410c4506aa66d3d9e44ac1e1", "codeScannerId": "292600f94c2811ec936afa163ef08725",
                     "ticketDistributorId": "f491749d4c1011ec936afa163ef08725",
                     "maincontrolId": "bab08ba94c1711ec936afa163ef08725",
                     "androidMotherboardId": "9fc2aba74c2711ec936afa163ef08725",
                     "printerId": "8eed2df04c2911ec936afa163ef08725", "readerId": "4bb117344c2811ec936afa163ef08725",
                     "camera": 1, "payCamera": 1, "doorInduction": 1, "electronicLock": 1, "warningLight": 1,
                     "emoticonScreen": 0, "resolutionType": 0}
        self.method = "put"
